/* 测试长连接通信，是否可以正确的处理，只要用户发送消息，就不会关闭连接*/
#include "../../Server.hpp"
int main()
{
    Socket client;
    client.CreateClient(8080,"127.0.0.1");
    std::string req = "GET /hello HTTP/1.1\r\nContent-Length: 0\r\nConnection: keep-alive\r\n\r\n";
    while(true){
        client.Send(req.c_str(),req.size());    
        char buffer[1024] = {0};
        auto ret = client.Recv(buffer,1023);
        assert(ret != -1);
        sleep(3);
        DBG_LOG("%s",buffer);
    }
    return 0;
}